<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/11/28
 * Time: 15:39
 */

namespace app\api\model;

use think\Model;

class BaseModel extends Model
{
    public function getWholeUrl($value, $data)
    {
        if ($data['from'] == 1) {
            // 本地图片 补全url
            return config('setting.imgPrefixUrl') . $value;
        }
        return $value;
    }
}